import { renderOption } from '@/utils/echartsOption'

const option = (res) => {
  const options = {
    tooltip: {
      trigger: 'item'
    },
    grid: {},
    series: res ? res.series : []
  }

  return renderOption('pie', options)
}

export default option
